import request from '@/utils/request'

// 酒店列表
export function groggeryListApi(params) {
    return request({
      url: `/admin/mszs/hotel/pageList`,
      method: 'get',
      params
    })
  }

// 酒店信息
export function groggerymessageApi(params) {
  return request({
    url: `/admin/mszs/hotel/load`,
    method: 'get',
    params
  })
}

// 新增酒店信息
export function addgroggeryinfoApi(data) {
  return request({
    url: `/admin/mszs/hotel/insert`,
    method: 'post',
    data
  })
}

// 修改酒店基本信息
export const editgroggeryApi = (data) =>{
  return request({
    url:'/admin/mszs/hotel/update',
    method:'post',
    data
  })
}

// 删除酒店信息
export const deltgroggeryApi = (params) =>{
  return request({
    url:'/admin/mszs/hotel/delete',
    method:'get',
    params
  })
}

// 用户信息

export const userListApi = (params) =>{
  return request({
    url:'/admin/mszs/user/list',
    method:'get',
    params
  })
}
